package ch.sv7.tool.dbmanager.util;

import java.io.File;
import java.net.URL;

public class FileSystemUtils {

	public static File currentFolder(Object instance) {
		URL url = instance.getClass().getResource("");
		File folder = new File(url.getFile());
		if (folder.exists()) {
			return folder;
		} else {
			return null;
		}
	}
}
